home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 38 (1994-02)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).zip / MegaDisc 38 (1994-02)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).adf / Tutes_&_CLI / NonDOS_Disks / NonDOS_Disks
Text File  |  1994-02-14  |  7KB  |  133 lines

  1.  
  2.                      Understanding Non-DOS disks
  3.                         
  4.                           by Paul Mclachlan
  5.     
  6.  
  7.  
  8.   38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38
  9.     
  10.     
  11.     In my younger and less sensitive years, I was once amused by a
  12.   friend of mine's shortcomings in Amiga literacy.  (We both had
  13.   500's) While I have now moved on from such arrogant attitudes, you
  14.   may find it interesting to have me recount a situation that once
  15.   occurred.
  16.  
  17.     We had both received a copy of a European demo (similar to the
  18.   ones in Tim's NDOS collection).  Back in those days (1.3) you could
  19.   tell if a disk was non dos by whether a CLI opened on bootup or not.
  20.   There were devious tricks that I have covered in a previous article
  21.   (compilations, a while back), but basically, that was the story.
  22.  
  23.     Anyway, knowing my friend rather well, I specifically told him not
  24.   to 'run' ANYTHING through disk-doctor without calling me first and
  25.   checking that it would be OK.  Well, this one weekend I happened to
  26.   be away.  (I'm sure you can see this coming).
  27.  
  28.     I got back to school the following monday to find my berated
  29.   holding a disk and requesting another copy.  It seems that due to an
  30.   unfortunate mishap with a virus, the disk ceased to work.  John (my
  31.   friend) had another Amiga friend at his place at the time, (who had,
  32.   probably, given him the virus) and who suggested that they run the
  33.   unfortunate disk through the great disk-doctor.
  34.  
  35.     John replied that he didn't think that it was such a great idea,
  36.   using words to the effect of:  A friend of mine knows a lot about
  37.   this kinda stuff, and he said not to.  This didn't stand up to a
  38.   "What harm can it do?".
  39.  
  40.     Now, as anyone who remembers diskdoctor could tell you, the great
  41.   doctor could turn *anything* into a DOS disk, regardless of the
  42.   consequences, without warnings, and without a second chance.
  43.   DiskDoctor grinded a lot, complained, came out with a disk called
  44.   'Lazarus" that was effectively empty.
  45.  
  46.     To finish the tale, I had, of course, deleted my copy, but
  47.   retained a backup of the bootblock (that being the only thing that
  48.   was ever damaged by a virus back then).  John never did get a look
  49.   at that demo.  And, at the time, I just laughed at him:  "I told you
  50.   so."
  51.  
  52.  
  53.     A fascinating tale, I hope.  But it serves a purpose (besides
  54.   showing that I used to be rather cruel).  The Non-Dos disk cannot be
  55.   treated by the OS at all, and if anything happens to it, the only
  56.   thing you can do is pray for a backup to fall from the heavens.
  57.  
  58.     I now aim to educated you, teach you to understand the Non-Dos
  59.   disk, understand why it is used, and to underst...  I'll just tell
  60.   you what I know about it, OK?
  61.  
  62.     Of course, the non-dos disks that don't work are really non-dos.
  63.   They might be IBM or Atari format, or anything could be wrong with
  64.   them.  I am only referring to Amiga Non-Dos disks in the rest of
  65.   this article:
  66.  
  67.     When you 'format' a disk, you are simply structuring the disk so
  68.   that files and so forth can be written on it by AmigaDOS.  Besides
  69.   wiping over what used to be on the disk, this also writes two
  70.   special blocks, the bootblock, and the directory block.  These two
  71.   are on the lower side of the disk, found at the start and middle
  72.   respectively.  Now, in the directory block of the disk is a listing
  73.   of all the files on the disk, as well as where the data for those
  74.   files is.  In the bootblock is just a really small program and a
  75.   checksum, which makes the disk bootable.
  76.  
  77.     What the standard bootblock does (if anyone has ever looked at it)
  78.   is open the 'dos.library', and then return.  You see, at the end of
  79.   a warm (or cold) boot, the OS loads and runs the program on the
  80.   bootblock.  Then, if this program returns, control goes back to the
  81.   OS, and a CLI will be opened and the startup sequence executed.
  82.  
  83.     However, not all bootblocks do this.  Some are viruses, in which
  84.   the virus loads itself when this bootblock is run, and then loads
  85.   the dos library and returns control (so nobody is any the wiser).
  86.   Some are virus protectors or bootblock utilities (and there are some
  87.   really fabulous ones out there), and finally, are the non dos disk
  88.   bootblocks.
  89.  
  90.     The idea of a non-dos disk is that the OS is never used.  The
  91.   bootblock loads the program off the disk because it knows where it
  92.   is on the disk, and there are no 'files' or 'directories' as such.
  93.   Just data that has been put on the disk without a particular format.
  94.  
  95.     There are several advantages of creating disks in this format, the
  96.   first of which is that data stored like this will load quicker (be
  97.   it a game or a demo), since it does not need to load the startup
  98.   sequence or search the directory to find where on the disk the data
  99.   it wants is.  Another advantage is that there is no chance of
  100.   someone trying to multitask in the background, and also you have all
  101.   the memory and capabilities of the machine to yourself.  Non-DOS
  102.   disks allow authors to add advanced copy protection to their disks
  103.   as well.
  104.  
  105.     The disadvantages are that the OS does not, by itself do anything
  106.   for you.  If you want a mouse pointer, you are going to have to
  107.   write it yourself, same for windows and screens.  You cannot access
  108.   any libraries, and even using normal DOS disks would be difficult.
  109.   Of course, none of these disadvantages apply to games and demos.
  110.  
  111.     The major disadvantage of Non-Dos disks these days is the lack of
  112.   hard drive installation.  This will annoy many users with hard
  113.   drives who like your demo/game or whatever, and wish to install it
  114.   on their hard drives for faster access.
  115.  
  116.     Other problems when dealing with non-dos disks are that most of
  117.   the time DiskCopy will not copy them, and you need another more
  118.   advanced copy program to do it (DCopy, XBackup etc).  This is
  119.   because DiskCopy checks to ensure that a disk is DOS, and otherwise
  120.   does some wierd things to the disk you are copying onto.
  121.  
  122.     While I can see the use of non-dos disks, I believe that authors
  123.   would be best to leave them alone, due to the advent of hard drives.
  124.   Before Hard drives were popular (became the rule rather than the
  125.   exception), the use of non-dos disks was perfectly acceptable,
  126.   especially due to the advantages they provided.  But now I believe
  127.   that it is a section of Amiga life that should be laid to rest.
  128.  
  129.  
  130.  
  131.   38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38 *^* 38
  132.     
  133.